package com.xin.springcloudconsumer.service;

import com.xin.springcloudconsumer.dto.Event;
import com.xin.springcloudconsumer.dto.PageResult;
import com.xin.springcloudconsumer.form.EventForm;
import org.springframework.data.domain.Pageable;





public interface EventService {
    //创建事件
    Event create(EventForm eventForm);
    //修改事件
    Event update(EventForm eventForm,String id);
    //删除事件
    boolean delete(String id);
    //查询某个事件
    Event findOne(String id);
    //查询某个人的全部事件
    PageResult findAll(String openId,Pageable pageable);
}
